package cn.iocoder.yudao.module.ym.controller.admin.ticket.vo;

import cn.iocoder.yudao.module.system.framework.operatelog.core.InspectionItemFunction;
import cn.iocoder.yudao.module.system.framework.operatelog.core.WoLevelFunction;
import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 工单新增/修改 Request VO")
@Data
public class TicketSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27491")
    private Long id;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "公司id", example = "9581")
    private Long deptId;

    @Schema(description = "第三主键", example = "23403")
    private Integer thirdId;

    @Schema(description = "工单编号	")
    private String ticketNumber;

    @Schema(description = "超时时长", example = "2")
    @DiffLogField(name = "超时时长")
    private Integer timeoutHour;

    @Schema(description = "工单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer ticketType;

    @Schema(description = "优先级", requiredMode = Schema.RequiredMode.REQUIRED)
    @DiffLogField(name = "优先级", function = WoLevelFunction.NAME)
    private Integer ticketLevel;

    @Schema(description = "工单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer ticketStatus;

    @Schema(description = "区域", requiredMode = Schema.RequiredMode.REQUIRED, example = "10318")
    private Long areaId;

    @Schema(description = "电站", requiredMode = Schema.RequiredMode.REQUIRED, example = "10190")
    private Long siteId;

    @Schema(description = "多电站", requiredMode = Schema.RequiredMode.REQUIRED, example = "10190")
    private List<Long> siteIds;


    @Schema(description = "指派人", requiredMode = Schema.RequiredMode.REQUIRED, example = "5412")
    private Long operatorId;

    @Schema(description = "接单时间")
    private LocalDateTime startTime;

    @Schema(description = "完单时间")
    private LocalDateTime endTime;

    @Schema(description = "巡检检查项")
    @DiffLogField(name = "巡检检查项",function = InspectionItemFunction.NAME)
    private String inspectionItem;

    @Schema(description = "处理情况")
    private String processing;

    @Schema(description = "故障描述")
    private String faultDesc;

    @Schema(description = "故障图片")
    private String faultImage;

    @Schema(description = "充电桩ID")
    private String chargingPileId;

    @Schema(description = "工单描述")
    @DiffLogField(name = "工单描述")
    private String ticketDesc;

    @Schema(description = "拒绝原因")
    private String refuseReason;

    @Schema(description = "重新派发时间")
    private LocalDateTime redistributeTime;

}
